import request from '@/utils/request'

export default {
  getControlDeviceList (data) {
    const url = 'main/controlDevice/queryPage'
    return request.get(url, data)
  },
  addControlDevice (data) {
    const url = 'main/controlDevice/dealControl'
    return request.postJson(url, data)
  },

  deleteControlDevice (data) {
    const url = 'main/controlDevice/deleteControl'
    return request.delete(url, data)
  },

  getControlDeviceInfo (data) {
    const url = 'main/controlDevice/queryInfo'
    return request.postJson(url, data)
  },
  getControlDeviceLogList (data) {
    const url = 'main/controlDeviceLog/queryPage'
    return request.get(url, data)
  },
  sendControlDeviceLog (data) {
    const url = 'main/controlDeviceLog/handleDevice'
    return request.postJson(url, data)
  },
  checkControlDevice (data) {
    const url = 'main/controlDeviceItem/checkItem'
    return request.get(url, data)
  },

}
